package com.project.senven.model.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.senven.commons.bean.User;
import com.project.senven.commons.uitl.JsonResult;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

@Service
public interface UserService extends IService<User> {

    //登录用户
    JsonResult login(User user);

    //注册用户
    JsonResult register(User user);

    //添加知识库
    void add();

    //添加多个PDF文件
    void batchAddPdfsToVectorStore();

    //查询知识库
    void find();

    //删除知识库里面的
    String delete();

    //流式的给用户回答
    Flux<String> stream(String question);
}
